<template>
	<view class="w-max">
		<scroll-view scroll-x class="flex fs22 mt12 nowrap">
			<view v-for="(item,index) in list" :key="index" :class="index==0?'cyan':index==1?'yellow':'blue'"
				class="p6 pl20 pr20 radius8 mr20 dib">{{item}}
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		name: "types",
		props: {
			list: {
				default: ''
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.cyan {
		background: rgba(0, 190, 195, 0.07);
		border-radius: 8rpx;
		color: #00bec3;
	}

	.yellow {
		background: rgba(234, 135, 68, 0.07);
		border-radius: 8rpx;
		color: #ea8744;
	}

	.blue {
		background: rgba(45, 168, 253, 0.07);
		border-radius: 8rpx;
		color: #2da8fd;
	}
</style>
